@extends('home.pblic.public')
@section('content')
  <div id="wrapper">        
  <div id="content">
      <div class="grid-16-8 clearfix">
          <div class="article">

  <div id="db-usr-profile">

  <div class="pic">
      <a href="https://www.douban.com/people/152231119/">
          <img src="{{ $users[0]->pic }}" alt="{{ $users[0]->username }}" style="width:50px;height:50px;">
      </a>
  </div>
  <div class="info">
      <h1>
          {{ $users[0]->username }}
      <div id="edit_signature" class="j a_edit_signature edtext pl">
          <span id="display" style="display: inline;">{{  $zwjs->content }}</span>
      <span id="edi" style="display: inline">
          (<a class="" href="/home/user/grxx">编辑</a>)
      </span>
      <form style="display: none;" action="/j/people/152231119/edit_signature" name="edit_sign" method="post"><div style="display:none;"><input name="ck" value="ypz3" type="hidden"></div>
          <input name="signature" size="30" maxlength="30" value="流水无情，听落华语" type="text">
          <input class="submit" value="修改" type="submit">
          <input class="cancel" value="取消" type="button">
      </form>
      <span id="error" class="attn" style="display: none;"></span>
      </div>
      </h1>
      <ul>
            <li><a href="#">我的主页</a></li>
            <li><a href="#">广播</a></li>
            <li><a href="/home/photo/tadd/">相册</a></li>
            <li><a href="#">日记</a></li>
            <li><a href="#">喜欢</a></li>
            <li><a href="#">豆列</a></li>
            <li><a href="#">设置</a></li>
      </ul>
  </div>
  </div>
  <div class="clear"></div>   
      <div class="sort " id="apps">
      </div>      
      <div class="sort " id="experience">
      </div>       
      <div class="sort " id="commodity">
      <div class="obssin">
      </div>
      <div class="obssin">
      </div>
      <div class="obssin">
      </div>
      </div>      
      <div class="sort " id="things">
      <div class="obssin">
      </div>
      </div>      
      <div class="sort " id="game">
      </div>      
      <div class="sort " id="like">
      <h2>
              <img src="/Images/red-heart.gif" width="13" height="13">
          我喜欢
              &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
              <span class="pl" style="float:right;padding-top:9px;">&nbsp;(
                  
                      <a href="https://www.douban.com/people/152231119/likes" target="_self">全部</a>
                  ) </span>
      </h2>
      <ul class="bs">
         
              <li>
               <span class="time">3天前</span>
               <a href="https://www.douban.com/note/585639434/" target="_self">ewqewqe</a>
              </li>
      </ul>
      <div class="clear"></div>
      </div>  
    <!-- 日记 ==============================================-->
      <div class="sort " id="note">
      <h2>
          我的日记
              &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
              <span class="pl">&nbsp;(
                  
                      <a href="{{ url('/home/day/show') }}" target="_self">全部</a>
                  ) </span>
              <a href="http://lamp.cn/home/day/add" style="float:right"><img src="/Images/new_note.gif"></a>      
      </h2>
      
      <div class="content">
        <!-- 循环 =======================-->
        @foreach($res as $k=>$v)
          <div class="mbtr2" >
              <div class="note-header pl2">
                  <a title="{{ $v->title }}}" href="https://www.douban.com/note/585639434/" class="ll">{{ $v->title }}</a>
              <br>
              <div><span class="pl">{{ $v->dtime }}</span></div>
              </div><div class="clear"></div>
              <div class="note" id="note_585639434_short">{!!  $v->content  !!}</div>
          </div>
         @endforeach 
        <!-- 循环 结束====================-->
          <div class="clear"></div>
      <div class="clear"></div>
      </div>
      </div>
<!-- 日记 结束===========================================-->
              
      <div class="sort " id="photo">
      <h2>
          我的相册
              &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
      </h2>  
      <div class="photo-btns">    
        <span class="btn-pic-upload"><a class="lnk-create" href="/home/photo/tadd"><i>+</i>发照片</a></span>
      </div>
    <div style="width:590px;">  
    @foreach($newp as $k=>$v)
          <div class="photoin">
            <a class="nbg" href="" title="{{ $v->pname }}" alt="{{ $v->pname }}">
              <img src="{{ $v->path }}" class="album_s">
            </a>
            <div class="ll pl" style="padding-top:8px;width:138px">
              <a href="https://www.douban.com/photos/album/1637115438/">{{ $v->pname }}</a>
              <br>{{ $v->ptime }}上传
            </div>
          </div>
    @endforeach      
        <div class="clear"></div>
    </div>
      </div>       
      <div class="sort " id="minisite">
      </div>       
      <div class="sort " id="shop">
      </div>       
      <div class="sort " id="recs">
  </div>            
      <div class="sort " id="review">
      </div>            
      <div class="sort " id="book">
        <h2>
            我读
            &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
            <span class="pl">&nbsp;(
                
                <a href="https://book.douban.com/mine?status=do" target="_blank">{{ count($books) }}本在读</a>
                )
            </span>
        </h2>
        <div class="obssin">
            <div class="substatus">在读</div>
            <ul>
            @foreach($books as $k=>$v)
              <li class="aob">
                <a href="{{ url('/home/xiangqing/show',['id'=>$v->gid])}}" title="{{ $v->name }}" target="_blank">
                <img src="{{ $v->pic }}" class="climg" alt="{{ $v->name }}" style="width:68px;height:98px;"></a>
              </li>
             @endforeach 
            </ul>
            <div class="clear"></div>
        </div>
      </div>
    </div>
    <div class="aside">
  <div id="profile">
  <div class="infobox">
      <div class="ex1"><span></span></div>
      <div class="bd">
  <div class="basic-info">
  <img src="{{ $users[0]->pic }}" class="userface" alt="" style="width:160px;height:89px;">
  <div class="user-info">
  常居:&nbsp;<a href="#">{{ $users[0]->shi }}</a><br>
  <div class="pl">{{ $users[0]->phone }}<br> 2016-10-08加入</div>
  </div>
  </div>
  <div class="sep-line"></div>
  <div class="user-intro">
      <div id="edit_intro" class="j edtext pl">
          <span id="intro_display">{{ $zwjs->content }}</span>
          <span id="intro_disp_act" style="display: inline">
              (<a class="zwjs">
                  编辑
              </a>)
          </span>
          
          <form style="display: none;"  name="edit_intro" mothod="get">
              <textarea name="intro" class="asd"> {{ $zwjs->content }} </textarea><br>
              <input id="intro_submit" class="submit" value="保存" type="button">
              <input class="submit" value="{{ session('id') }}" type="hidden">
              <input id="intro_cancel" class="cancel" value="取消" type="button">
          </form>

          <span id="intro_error" class="attn" style="display: none;"></span>
      </div>
  </div>
  <!-- 个人介绍 ===================================================-->
  <script type="text/javascript">
  // alert($);
     $.ajaxSetup({
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            }
    });
    $('.zwjs').click(function(){
      // alert(2222);
      $(this).parents('.user-intro').find('form').attr('style','display:block');
      var value=$(this).parents('.user-intro').find('.asd').val();
      var ass=dd.parents('.j').find('#intro_display').html();
      alert(ass);
      // alert(value);
      // 绑定axaj
      
    });
      $('.submit').click(function(){
        var value=$(this).parents('.user-intro').find('.asd').val();
        var uid=$(this).next().val();
        var dd=$(this);
        var ass=dd.parents('.j').find('#intro_display').html();
        // alert(ass);
        $.get('/home/xiangqing/zwjs',{uid:uid,content:value},function(data){
            if(data==1 || data==2){
                dd.parents('.user-intro').find('form').attr('style','display:none');
                dd.parents('.j').find('#intro_display').html(value);
                dd.parents('#content').find('#display').html(value);
            }else{
              alert('更新或插入失败...');
            }
        });  
      
    });
      $('#intro_cancel').click(function(){
          $(this).parents('.user-intro').find('form').attr('style','display:none');
      });
  </script>
   <!-- 个人介绍 ===--------------------------------------------------============-->
  </div>
      <div class="ex2"><span></span></div>
  </div>
  </div>
  <script src="./Scripts/jquery.elastic.js"></script>
    <div class="clear"></div>
      <div id="statuses">
        <div class="stream-items">       
      <h2>
          我的广播
              &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
              <span class="pl">&nbsp;(
                  
                      <a href="/people/152231119/statuses" target="_self">全部</a>
                  ) </span>
      </h2>
  <div class="status-item" style="" data-sid="1900637838" data-action="6" data-target-type="sns" data-object-kind="1025" data-object-id="2387807415">
    <div class="mod" data-status-id="1900637838">   
      <div class="bd layout-4">
    <p class="text">
          上传了1张照片到 <a href="https://www.douban.com/photos/album/1637133906/" target="_self" onclick="moreurl(this,{from:'nmb-1900637838', action:'6', target_type:'sns', object_kind:'1025' , url: 'https://www.douban.com/link2/'})">adadaw</a>
    </p>
    <div class="actions">        
          <span class="created_at" title="2016-10-09 10:55:42"><a href="https://www.douban.com/people/152231119/status/1900637838/">10月9日</a></span>
          &nbsp;&nbsp;
            <a href="https://www.douban.com/people/152231119/status/1900637838/" class="" data-action-type="showComments">回应</a>
        &nbsp;&nbsp;<a href="https://www.douban.com/people/152231119/status/1900637838/" class="btn btn-action-reply-delete" data-action-type="deleteStatus">删除</a>
    </div>

        <div class="others">
          <div class="comments">
            <div class="comments-items"></div>
              <form method="post" action="https://www.douban.com/people/152231119/status/1900637838/" class="comment-form"><div style="display:none;"><input name="ck" value="ypz3" type="hidden"></div>
                <input maxlength="280" name="text" class="comment-text" data-type="status-comment" type="text">
                <input value="发表回应" data-type="status-comment" type="submit">
                <a href="javascript:void(0);" class="add-more-comments">继续回应</a>
              </form>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="status-item" style="" data-sid="1900628313" data-action="6" data-target-type="sns" data-object-kind="1025" data-object-id="2387807552">
    <div class="mod" data-status-id="1900628313">    
      <div class="bd layout-4">         
   <p class="text">
          上传了1张照片到 <a href="https://www.douban.com/photos/album/1637115438/" target="_self" onclick="moreurl(this,{from:'nmb-1900628313', action:'6', target_type:'sns', object_kind:'1025' , url: 'https://www.douban.com/link2/'})">第一个相册</a>
    </p>   
    <div class="actions">  
          <span class="created_at" title="2016-10-09 10:30:44"><a href="https://www.douban.com/people/152231119/status/1900628313/">10月9日</a></span>
          &nbsp;&nbsp;
            <a href="https://www.douban.com/people/152231119/status/1900628313/" class="" data-action-type="showComments">1回应</a>
        &nbsp;&nbsp;<a href="https://www.douban.com/people/152231119/status/1900628313/" class="btn btn-action-reply-delete" data-action-type="deleteStatus">删除</a>
    </div>

        <div class="others">
          <div class="comments">
            <div class="comments-items"></div>
              <form method="post" action="https://www.douban.com/people/152231119/status/1900628313/" class="comment-form"><div style="display:none;"><input name="ck" value="ypz3" type="hidden"></div>
                <input maxlength="280" name="text" class="comment-text" data-type="status-comment" type="text">
                <input value="发表回应" data-type="status-comment" type="submit">
                <a href="javascript:void(0);" class="add-more-comments">继续回应</a>
              </form>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="status-item" style="" data-sid="1900494121" data-action="0" data-target-type="ark" data-object-kind="5015" data-object-id="25836894">
    <div class="mod" data-status-id="1900494121">       
    <div class="bd layout-1">
    <p class="text">
          订阅了 衣岳 的连载（来自豆瓣阅读）
    </p>    
    <div class="actions">
          
          <span class="created_at" title="2016-10-08 23:37:59"><a href="https://www.douban.com/people/152231119/status/1900494121/">10月8日</a></span>
          &nbsp;&nbsp;
            <a href="https://www.douban.com/people/152231119/status/1900494121/" class="" data-action-type="showComments">回应</a>
        &nbsp;&nbsp;<a href="https://www.douban.com/people/152231119/status/1900494121/" class="btn btn-action-reply-delete" data-action-type="deleteStatus">删除</a>
    </div>

        <div class="others">
          <div class="comments">
            <div class="comments-items"></div>
              <form method="post" action="https://www.douban.com/people/152231119/status/1900494121/" class="comment-form"><div style="display:none;"><input name="ck" value="ypz3" type="hidden"></div>
                <input maxlength="280" name="text" class="comment-text" data-type="status-comment" type="text">
                <input value="发表回应" data-type="status-comment" type="submit">
                <a href="javascript:void(0);" class="add-more-comments">继续回应</a>
              </form>
          </div>
        </div>
      </div>
    </div>
  </div>
        </div>
      </div>
  <div id="friend">
  </div>
      <p class="rev-link"><a href="/contacts/rlist">&gt;&nbsp;我被0人关注</a></p>
              
      <div class="sort " id="event">
      </div>        
      <div class="sort " id="online">
    </div>          
      <div class="sort " id="doulist">
   
          <a class="lnk-create" href="https://www.douban.com/doulist/new" onclick="moreurl(this, {from:'sns-people-create-doulist-152231119'})"><i>＋</i>创建豆列</a>   
      <h2>
          我的豆列
              &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
              <span class="pl">&nbsp;(
                  
                      <a href="https://www.douban.com/people/152231119/doulists/" target="_self">全部1</a>
                  ) </span>
      </h2>
          <ul class="doulist-list">
              <li>
                  <a href="https://www.douban.com/doulist/45238324/">1 (1)</a>
              </li>
          </ul>
      <div class="clear"></div>
      </div>           
      <div class="sort " id="group">
      </div>
          <p class="pl2"><a href="/service/badgemaker">&gt; 添加我的豆瓣收藏秀</a></p><br>
          
  <p class="pl">订阅我的收藏: <br><span class="feed">
      <a href="https://www.douban.com/feed/people/152231119/interests"> feed: rss 2.0</a></span></p>

          </div>
          <div class="extra">
              

          </div>
      </div>
  </div>
@endsection